lib/deploy: Don't include version twice in bootmenu title
authorJonathan Lebon <jonathan@jlebon.com>
Fri, 1 Mar 2019 14:16:55 +0000 (09:16 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sat, 9 Mar 2019 19:44:15 +0000 (19:44 +0000)
commit978cffed70640cca66cb1623dea68b179288b453
treefe1daa95f4bd529b05c128ccb20061b121742ca7
parent21ebc7d21edd00c3fe0ce80ea68ba3f8f5e41ae3
lib/deploy: Don't include version twice in bootmenu title

In Silverblue right now, the boot menu title looks like this:

    Fedora 29.20190301.0 (Workstation Edition) 29.20190301.0 (ostree)

This is because RPM-OSTree's `mutate-os-release` feature is enabled,
which injects the OSTree version string directly into `VERSION` and
`PRETTY_NAME`. So appending the version string again is a bit redundant.
Let's just do a simple substring check here before adding the version to
the title.

Closes: #1829
Approved by: cgwalters
src/libostree/ostree-sysroot-deploy.c
tests/admin-test.sh
tests/libtest.sh